/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package weixin.popular.message.handler.defaultimpl;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import weixin.popular.bean.message.EventMessage;
import weixin.popular.message.handler.AbstractDelayMessageHandler;

/**
 *
 * @author johns
 */
public class RepoMessageHanlder extends AbstractDelayMessageHandler {
    
    Logger logger = LoggerFactory.getLogger(RepoMessageHanlder.class);
    
    @Override
    public void delay(EventMessage message) {
        logger.debug("异步处理Message,这里将Message存入数据库");
        logger.debug("Message 内容为："+message.toString());
    }

    @Override
    public boolean isSupport(EventMessage message) {
        return true;
    }
    
}
